package com.itheima.health.dao;

import com.itheima.health.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface RoleDao extends Mapper<Role> {
   // @Select("SELECT tr.* FROM t_permission tp JOIN t_role_permission trp ON tp.id = trp.permission_id JOIN t_role tr ON trp.role_id = tr.id WHERE tp.id = #{id}")
   // List<Role> findByRole(@Param("id") Integer id);

}
